package com.coderg.gmall.cart.feign;

import com.coderg.gmall.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/***
 * sf
 */
@FeignClient(name = "service-cart", path = "/cart/info")
public interface CartFeign {

    /**
     * 查询购物车
     *
     * @return
     */
    @GetMapping(value = "/getCarts")
    public Result getCarts();

    /**
     * 查询确认界面
     * @return
     */
    @GetMapping(value = "/getCartConfirm")
    public Result cartConfirm();

    /**
     * 清空购物车
     * @return
     */
    @GetMapping(value = "/clearCarts")
    public Boolean clearCarts();


}


